package com.fdb.efp.nls.service.dao;

import com.fdb.efp.nls.service.domain.LoanUseRecord;
import com.fdb.efp.nls.service.vo.LoanUseRecordVO;

import java.util.List;

/**
 * <p>
 * 放款用途记录表的DAO类
 * </p>
 * @author yusys
 * @createDate 2018-06-25 15:58:01
 */
public interface LoanUseRecordDao {
    
    /**
     * 插入放款用途记录表记录
     * @param loanUseRecord
     * @return
     */
    public int insertLoanUseRecord(LoanUseRecord loanUseRecord);
    
    /**
     * 根据主键删除放款用途记录表记录
     * @param loanUseRecord
     * @return
     */
    public int deleteByPk(LoanUseRecord loanUseRecord);
    
    /**
     * 根据主键更新放款用途记录表记录
     * @param loanUseRecord
     * @return
     */
    public int updateByPk(LoanUseRecord loanUseRecord);
    
    /**
     * 查询放款用途记录表记录
     * @param loanUseRecord
     * @return
     */
    public LoanUseRecord queryByPk(LoanUseRecord loanUseRecord);
    
    /**
     * 查询本人所属的记录
     * @param loanUseRecordVo
     * @return
     */
    public List<LoanUseRecord> queryAllOwnerByPage(LoanUseRecordVO loanUseRecordVo);
    
    /**
     * 查询本机构的记录
     * @param loanUseRecordVo
     * @return
     */
    public List<LoanUseRecord> queryAllCurrOrgByPage(LoanUseRecordVO loanUseRecordVo);
    
    /**
     * 查询本机构及下属机构的记录
     * @param loanUseRecordVo
     * @return
     */
    public List<LoanUseRecord> queryAllCurrDownOrgByPage(LoanUseRecordVO loanUseRecordVo);
    
    /**
     * 根据查询条件返回记录
     * @param loanUseRecord
     * @return
     */
	public List<LoanUseRecord> queryByCondition(LoanUseRecord loanUseRecord);
}